home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _70F044C2E18D48AAB8CCBF519F86B8DB < prev    next >
Encoding:
Text File  |  2004-06-16  |  5.6 KB  |  227 lines

  1. !include("surface.def")
  2.  
  3. shader()
  4. {// >=gffx
  5.     SurfaceID(SRF_GROUND)
  6.     Shaderquality(3)
  7.     Cull("ccw")
  8.     pass()
  9.     {
  10.         Pixelshader("TerrainCrag14.psh")
  11.         vertexshader("TerrainCrag.vsh")
  12.  
  13.         !include("__TerrainDetail1VS.mtt")
  14.         !include("__TerrainDetailCrag.mtt")
  15.         !include("__TerrainColormapVS3.mtt")
  16.         !include("__CloudsVS.mtt")
  17.         !include("__TerrainColormapSmallVS3.mtt")
  18.  
  19.     }
  20.  
  21.     lightpass()
  22.  
  23.     !include("SpotShadowMapVS.mtt")
  24.     !include("SpotTerrainCrag14VS.mtt")
  25.  
  26. }
  27.  
  28. shader()
  29. {// >=gf3
  30.     SurfaceID(SRF_GROUND)
  31.     Shaderquality(3)
  32.     Cull("ccw")
  33.     pass()
  34.     {
  35.         vertexshader("TerrainCragLow11_1.vsh")
  36.         Pixelshader("TerrainCragLow11_1.psh")
  37.  
  38.         !include("__TerrainDetail1VS.mtt")
  39.         !include("__TerrainColormapSmallVS3.mtt")
  40.         !include("__TerrainDetailCrag.mtt")
  41.     }
  42.  
  43.     pass()
  44.     {
  45.         vertexshader("TerrainCrag11_2.vsh")
  46.         Pixelshader("TerrainCrag11_2.psh")
  47.  
  48.         !include("__TerrainColormapVS3.mtt")
  49.         !include("__CloudsVS.mtt")
  50.         DepthFunc("lequal", 0)
  51.         BlendFunc("zero", "inv_src_color")
  52.         BlackFog()
  53.     }
  54.     lightpass()
  55.  
  56.     !include("SpotShadowMapVS.mtt")
  57.     !include("SpotTerrainCrag11VS.mtt")
  58. }
  59.  
  60.  
  61. shader()
  62. {//gf3
  63.     SurfaceID(SRF_GROUND)
  64.     Shaderquality(2)
  65.     Cull("ccw")
  66.     pass()
  67.     {
  68.         vertexshader("TerrainCragLow11_1.vsh")
  69.         Pixelshader("TerrainCragLow11_1.psh")
  70.  
  71.         !include("__TerrainDetail1VS.mtt")
  72.         !include("__TerrainColormapSmallVS3.mtt")
  73.         !include("__TerrainDetailCrag.mtt")
  74.     }
  75.  
  76.     pass()
  77.     {
  78.         vertexshader("TerrainCragLow11_2.vsh")
  79.         Pixelshader("TerrainCragLow11_2.psh")
  80.  
  81.         !include("__TerrainColormapVS3.mtt")
  82.         DepthFunc("lequal", 0)
  83.         BlendFunc("zero", "inv_src_color")
  84.         BlackFog()
  85.     }
  86.     lightpass()
  87.  
  88.     !include("SpotShadowMapVSLow.mtt")
  89.     !include("SpotTerrainCrag11VS.mtt")
  90. }
  91.  
  92. shader()
  93. {// >=gf3
  94.     SurfaceID(SRF_GROUND)
  95.     Shaderquality(1)
  96.     Cull("ccw")
  97.     pass()
  98.     {
  99.         vertexshader("TerrainCragVeryLow.vsh")
  100.         Pixelshader("TerrainCragVeryLow.psh")
  101.  
  102.         !include("__TerrainColormapVS3.mtt")
  103.         !include("__TerrainDetail1VS.mtt")
  104.     }
  105.  
  106.     lightpass()
  107.  
  108.     !include("SpotShadowMapVSVeryLow.mtt")
  109.     !include("SpotTerrainCrag11VS.mtt")
  110. }
  111.  
  112. shader()
  113. {//gf2
  114.     SurfaceID(SRF_GROUND)
  115.     Cull("ccw")
  116.     Shaderquality(1)
  117.     pass()
  118.     {
  119.         tmu()
  120.         {
  121.             TexGen("planar")
  122.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  123.             texture()
  124.             {
  125.                 Image(%colortexture)
  126.                 addressfunc("clamp", "clamp", "clamp")
  127.             }
  128.             ColorOp("mul_add", "texture_a", "inv_tfactor_a", "tfactor_a")
  129.         }
  130.         tmu()
  131.         {
  132.             TexGen("world_position")
  133.             TexMtxDirPosScale(1.0, 0.0, 0.0, 0, 0, 0, %waterscale, %waterscale, %waterscale)
  134.             texture()
  135.             {
  136.                 Image("WaterDeep_P.dds")
  137.                 filtering("linear_no_mip")
  138.                 addressfunc("wrap", "clamp", "clamp")
  139.  
  140.             }
  141.             ColorOp("mul", "current", "tfactor", "current")
  142.             AlphaOp("arg1", "texture", "tfactor", "current")
  143.         }
  144. //        depthfunc("lequal", 0)
  145.         tfactor(%daycolor_r, %daycolor_g, %daycolor_b, %ambient_a)
  146. //        BlendFunc("zero", "src_color")
  147.     }
  148.     lightpass()
  149.     !include("SpotShadowmapVeryLow.mtt")
  150.     !include("spot_spotmap.mtt")
  151.  
  152.     pass()
  153.     {
  154.         tmu()
  155.         {
  156.             TexGen("planar")
  157.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  158.             texture()
  159.             {
  160.                 Image(%colortexture)
  161.                 addressfunc("clamp", "clamp", "clamp")
  162.             }
  163.             ColorOp("arg1", "inv_texture", "current", "current")
  164.         }
  165.  
  166.         DepthFunc("lequal", 0)
  167.         BlendFunc("zero", "inv_src_color")
  168.         BlackFog()
  169.     }
  170.  
  171.     pass()
  172.     {
  173.         tmu()
  174.         {
  175.             TexGen("planar")
  176.             TexMod("scale", "const", %detailsize, 0, 0, "const", %detailsize, 0, 0)
  177.             texture()
  178.             {
  179.                 Image(%detail1texture)
  180.             }
  181.             ColorOp("arg1", "inv_texture_a", "current", "current")
  182.         }
  183.         DepthFunc("lequal", 0)
  184.         BlendFunc("zero", "inv_src_color")
  185.         BlackFog()
  186.     }
  187.  
  188. }
  189.  
  190. shader()
  191. {//gf2
  192.     SurfaceID(SRF_GROUND)
  193.     Cull("ccw")
  194.     Shaderquality(0)
  195.     pass()
  196.     {
  197.         tmu()
  198.         {
  199.             TexGen("planar")
  200.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  201.             texture()
  202.             {
  203.                 Image(%colortexture)
  204.                 addressfunc("clamp", "clamp", "clamp")
  205.             }
  206.             ColorOp("mul", "texture", "tfactor", "current")
  207.             AlphaOp("mul_add", "texture", "inv_tfactor", "tfactor")
  208.         }
  209.         tmu()
  210.         {
  211.             TexGen("planar")
  212.             TexMod("scale", "const", %detailsize, 0, 0, "const", %detailsize, 0, 0)
  213.             texture()
  214.             {
  215.                 Image(%detail1texture)
  216.             }
  217.             ColorOp("mul", "texture_a", "current", "current")
  218.             AlphaOp("arg2", "texture", "current", "current")
  219.         }
  220.         BlendFunc("src_alpha", "zero")
  221.         tfactor(%daycolor_r, %daycolor_g, %daycolor_b, %ambient_a)
  222.     }
  223.     lightpass()
  224.     !include("SpotShadowmapVeryLow.mtt")
  225.     !include("spot_spotmap.mtt")
  226. }
  227.